﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Bankbook.aspx.cs" Inherits="MZ.Money.Bankbook" %>

<%@ Register Src="../UserControl/Money/TopMenu.ascx" TagName="TopMenu" TagPrefix="uc1" %>
<%@ Register Src="../UserControl/Money/LeftMenu.ascx" TagName="LeftMenu" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>理财猪手</title>
    <link href="../css/reset-min.css" rel="stylesheet" type="text/css" />
    <link href="../css/base-min.css" rel="stylesheet" type="text/css" />
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
    <link href="../css/smoothness/jquery-ui-1.8.14.custom.css" rel="stylesheet" type="text/css" />
    <link href="../css/Money.css" rel="stylesheet" type="text/css" />

    <script src="../js/jquery-1.6.2.min.js" type="text/javascript"></script>

    <script src="../js/jquery-ui-1.8.14.custom.min.js" type="text/javascript"></script>

    <script src="../js/jquery.price_format.1.5.js" type="text/javascript"></script>
      <script src="../js/mz_ajax.js" type="text/javascript"></script>

    <style>
        .input_item
        {
            float: left;
            width: 350px;
            height: 30px;
            line-height: 30px;
        }
    </style>
</head>
<body>
    <div style="width: 960px; margin: 0px auto;">
        <form id="form1" runat="server">
        <uc1:TopMenu ID="TopMenu1" runat="server" />
        <div id="work" class="ui-corner-all ui-widget-content">
            <uc1:LeftMenu ID="LeftMenu1" runat="server" />
            <div style="float: left; padding: 20px; width: 737px;">
                <div class="input_item">
                    <label>
                        账 户</label><asp:DropDownList runat="server" ID="DdlMyCard" DataTextField="Title"
                            DataValueField="CID">
                        </asp:DropDownList>
                </div>
                <div class="input_item">
                    <label>
                        时间</label><asp:TextBox runat="server" ID="TxtRecordTime"></asp:TextBox>
                </div>
                <div class="input_item">
                    <label>
                        定存金额</label><asp:TextBox runat="server" ID="TxtMoney"></asp:TextBox>
                </div>                
                <div class="input_item">
                    <label>
                        定存时间</label>
                        <asp:DropDownList runat="server" ID="DdlRate" DataTextField="Title" DataValueField="id">
                        </asp:DropDownList>                        
                </div>
                <div class="input_item">
                    <label>
                        利率</label><asp:TextBox runat="server" ID="TxtRate" style="width:30px"></asp:TextBox>%
                </div>
                <div style="clear: both;"></div>
                
                <asp:Button runat="server" ID="BtnSave"  Text="保存" onclick="BtnSave_Click" />
                <hr style="color: #AAAAAA; background-color: #AAAAAA; height: 2px; border: none;" />
            </div>
            <div style="clear: both;" ></div>
        </div>
        </form>
    </div>
</body>
</html>

<script type="text/javascript">
$(function(){
        //datepicker
		$( "#TxtRecordTime" ).datepicker({
			showOn: "button",
			buttonImage: "../img/Calendar-Edit.png",
			buttonImageOnly: true
		});
		
		//button
		$('#BtnSave').button();
		
		//price input
		$('#TxtCardMoney,#TxtMoney').priceFormat({
		     prefix: 'RMB￥',
		     clearPrefix: true
		});
		
		//DdlRate event
		$('#DdlRate').change(function(){
		    _ajax.post('../server/InfoHandler.ashx',{info:'rate',id:$('#DdlRate').val()},function(json){
		        $('#TxtRate').val(json.Rate)
		    });
		})
});
</script>

